package org.springframework.prospring.ticket.service;

import org.springframework.prospring.ticket.domain.Club;
import org.springframework.prospring.ticket.domain.Field;
import org.springframework.prospring.ticket.domain.Turn;
import org.springframework.prospring.ticket.domain.user.User;

import java.util.Collection;
import java.util.Date;
import java.sql.Timestamp;

public interface ClubManager {
    public Club findClub(Long clubId);
    public Collection<Club> findAllClubs();
    public Collection<Club> findAllClubsByRegionId(Long regionId);
    public Collection<Field> findFields(Long clubId);
    public Collection<Turn> findAllTurnsByFieldIdAndDate(Long fieldId, Date date);
    public Turn saveReservationField(Long fieldId, Timestamp startDate, Timestamp endDate, User user);
    public Club saveClub(Club club) throws Exception;
    public void removeClub(Long clubId);
}
